package com.gao.weblog.web.controller;

import com.gao.weblog.common.aspect.ApiOperationLog;
import com.gao.weblog.common.utils.Response;
import com.gao.weblog.web.module.vo.archive.FindArchiveArticlePageListReqVO;
import com.gao.weblog.web.service.ArchiveService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.simpleframework.xml.core.Validate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@Api(tags = "前台归档页面")
public class ArchiveController {
    @Autowired
    private ArchiveService archiveService;

    @PostMapping("/archive/list")
    @ApiOperation(value = "获取归档页面信息")
    @ApiOperationLog(description = "获取归档页面信息")
    public Response findArchivePageList(@RequestBody @Validate FindArchiveArticlePageListReqVO findArchiveArticlePageListReqVO){
        return archiveService.findArchivePageList(findArchiveArticlePageListReqVO);
    }

}
